package com.ccys.db.dto.masterData;

import com.ccys.db.entity.TblPricingTiming;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: WhiteCoat
 * @description: 保存问诊价格接收Dto
 * @author: ZhangJingCan
 * @create: 2023-12-13 18:00
 **/

@Data
@ApiModel("保存问诊价格接收Dto")
public class PricingTimingSaveDto extends TblPricingTiming {

    @ApiModelProperty(value = "id", name = "id", example = "id")
    private String id;

    @ApiModelProperty(value = "countryId", name = "countryId", example = "countryId")
    private String countryId;

    @ApiModelProperty(value = "type", name = "type", example = "0 normal,1 special")
    private Integer type;

    @ApiModelProperty(value = "officeType", name = "officeType", example = "0:office hours ;1:after hours ;2:close")
    private Integer officeType;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "date", name = "date", example = "date")
    private Date date;

    @ApiModelProperty(value = "value", name = "value", example = "value,价格，保留两位小数")
    private BigDecimal value = BigDecimal.ZERO.setScale(2, BigDecimal.ROUND_DOWN);

    @ApiModelProperty(value = "开始时间,例如字符串：09:00", name = "timeStart")
    private String timeStart;

    @ApiModelProperty(value = "结束时间例如字符串：09:00", name = "timeEnd", example = "结束时间，字符串：09:00")
    private String timeEnd;

    @ApiModelProperty(value = "状态", name = "status", example = "状态:0-禁用，1-启用")
    private Integer status;

    @ApiModelProperty(value = "名称", name = "name", example = "普通时间存星期几的数字，节假日存名称 ;星期 1 为0,星期天为6")
    private String name;

}
